
import Relay from "react-relay";
export default class listProductionCensusMutation extends Relay.Mutation {

    static fragments = {};

    getMutation() {
        return Relay.QL`mutation { listProductionCensus }`;
    }

    getVariables() {
        return {
            argsInput: {
                workShop:this.props.workShop,
                productionType:this.props.productionType,
            }
        };
    }

    getFatQuery() {
        return Relay.QL`fragment on listProductionCensusPayload  {
            listProductionCensus {
                errorCode
                value
                totalResult
                id
                listTime 
                productionCensusModel{
                     groupName
                     day7
                     day6
                     groupId
                     day5
                     day4
                     day3
                     count
                     day2
                     day1
                     upTime 
                }
            }
        }`;
    }

    getConfigs() {
        return [{
            type: 'REQUIRED_CHILDREN',
            children: [Relay.QL`
               fragment on listProductionCensusPayload  {
                    listProductionCensus {
                        errorCode
                        value
                        totalResult
                        id
                        listTime
                        productionCensusModel{
                            groupName
                            day7
                            day6
                            groupId
                            day5
                            day4
                            day3
                            count
                            day2
                            day1
                            upTime 
                        }
                    }
                 }
            `]
        }];
    }

}
